package com.s64.service;

import com.s64.dao.SysUserDao;
import com.s64.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {
    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public List<SysUser> getAll() {
        return sysUserDao.getAll();
    }

    @Override
    public int add(SysUser user) {
        return sysUserDao.add(user);
    }

    @Override
    public int del(Integer id) {
        return sysUserDao.del(id);
    }

    @Override
    public int update(SysUser user) {
        return sysUserDao.update(user);
    }

    @Override
    public SysUser get(Integer id) {
        return sysUserDao.get(id);
    }
}
